package com.chengshi.shop.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * 根目录重定向跳转
 * @author xuxinlong
 * @version 2017年11月09日
 */
@RestController
@RequestMapping(value = "/")
public class MainController {

    @RequestMapping(value = "")
    public ModelAndView index() {
        return new ModelAndView("redirect:/admin/index");
    }
}
